package com.vip.sys.modular.login.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vip.sys.modular.login.entity.LoginMonitor;
import com.vip.sys.modular.login.mapper.LoginMonitorMapper;
import com.vip.sys.modular.login.service.LoginMonitorService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ASUS
 * @Date 2025/4/29 12:20
 * @Descripition
 */
@Service
public class LoginMonitorServiceImpl extends ServiceImpl<LoginMonitorMapper, LoginMonitor> implements LoginMonitorService {
    @Override
    public List<LoginMonitor> listDsc() {
        LambdaQueryWrapper<LoginMonitor> wrapper = new LambdaQueryWrapper<>();
        wrapper.orderByDesc(LoginMonitor::getLoginTime);
        return list(wrapper);
    }
}
